<html lang="zh-CN">

<head>
	<title>查看VIP</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<style type="text/css">
		.STYLE6 {
			color: #999999;
			font-size: 12px;
		}

		a.gray {
			color: #999999;
			text-decoration: none
		}

		a.gray:hover {
			color: #CCCCCC;
			text-decoration: none
		}

		select {
			width: 60px;
			/* 可根据需要调整宽度 */
			height: 30px;
			/* 可根据需要调整高度 */
		}
	</style>
</head>

<body>
	<table width="100%" height="100%" border="0" cellpadding="1" cellspacing="0" class="TitleColor">
		<tr>
			<td width="15%" valign="top" bgcolor="#E1E1E1">
				<div id='leftpage'></div>
			</td>
			<td width="85%">
				<table width="100%" border="0" cellpadding="1" cellspacing="0">
					<tr>
						<td>
							<table align="center" border="0" cellspacing="0" cellpadding="1">

								<tr>
									<td align="right">经历：</td>
								</tr>
                                <tr>
                                    <td>
                                        <!-- 歌曲列表区域 -->
                                        <div id="vipExperienceList"></div>
                                        <!-- 翻页按钮区域 -->
                                        <div id="pagination"></div>
                                    </td>
                                </tr>
							</table>
						</td>
					</tr>
				</table>
			</td>

		<tr>
			<td bgcolor="#E1E1E1" align="center">
				<div id='totalpage'></div>
			</td>
			<td height="60" align="center">
				<div id='footerpage'></div>
			</td>
		</tr>

		</tr>
	</table>
</body>
<script>
	function loadScript(c, d) { var b = document.createElement("script"); b.type = "text/javascript"; var e = sessionStorage.getItem(c); e ? (b.textContent = e, d(b)) : fetch(c).then(function (a) { return a.text() }).then(function (a) { b.textContent = a; sessionStorage.setItem(c, a); d(b); location.reload() })["catch"](function (a) { console.error("Error loading the script:", a) }) };
	loadScript("tu_0.js", function (script) { document.head.appendChild(script); });
</script>
<script>
	if (sessionStorage.getItem("tu_0.js")) {		// 读取记忆是否已保存js文件
		loadHtml("left.htm", "leftpage");
		loadHtml("total.htm", "totalpage");
		loadHtml("footer.htm", "footerpage");
	}

	var first = 0;
	function fun() {
		if (first == 0) {
			first = 1;
			setTimeout(function () { myTimer("cookie") }, 0);		//自动发送post指,只有打开页面的时候，才发送一次
		} else {
		}
	}
	setInterval("fun()", 100);			// 周期性调用函数 每隔100毫秒调用一次	

	function myTimer(type) {
		var xhr = postPhp("index.php");
		xhr.onreadystatechange = function () {		//2.注册回调函数
			var array_name = txtUnzip(xhr);
			if (array_name != null) {
				if (type == "cookie") {
					cookiemyFunction(array_name)		// 返回的信息在html页面显
				}
                if (type == "Cread") {
                    displayExpsList(array_name);
                }
			}
		}

		if (type == "cookie") {
			txtZip(xhr, "t:ncki");
		}
        if (type == "Cread") {
            // var optt = ((0 & 0x03) << 10) | ((0 & 0x1f) << 5) | (dbsTyp & 0x1f);
            // var kcid = 1;
            // var fida = 1;
            // var aux1 = 1;
            // var aux2 = 1;
            // var auxa = txtB64Enc("");
            // txtZip(xhr, "t:dnlt&optt:" + optt + "&kcid:" + kcid + "&fida:" + fida + "&aux1:" + aux1 + "&aux2:" + aux2 + "&auxa:" + auxa);	
        }
	}

	function cookiemyFunction(arr) {
		switch (arr.result) {
			case "ok":
                myTimer("Cread");
				document.getElementById("totalSpace").textContent = showSpace(arr.totd, arr.usdd);
				break;
			default:
				alert('请先登录后，再操作！');
				window.location.href = "user.htm";
				return false;
		}
	}

	function displayExpsList(arr) {
		var list = document.getElementById("vipExperienceList");
        list.innerHTML = ""; // 清空之前的内容
        var exps = arr.list;

        for (var i = 0; i < exps.length; i++) {
            var exp = exps[i];
            var expItem = document.createElement("div");
            expItem.className = "exp-item";
            expItem.innerHTML = "<p>经历：" + exp.exp + "</p>";
            list.appendChild(expItem);
        }
    }
</script>

</html>